package com.tsingteng.cosfun.ui.login;

import com.tsingteng.cosfun.bean.ReportBean;
import com.tsingteng.cosfun.bean.UserBean;
import com.tsingteng.cosfun.callback.RxObserver;

/**
 * 描述 :
 * 创建人: 肖利.
 * 时间:2018/8/8
 * qq(872179966)
 */

public interface ILoginModel {
    /**
     * 登录
     * @param mobile
     * @param verifyCode
     * @param timestamp
     */
    void login(String mobile, String verifyCode, String timestamp, RxObserver<UserBean> callback);

    /**
     * 注册
     * @param mobile
     * @param verifyType
     * @param timestamp
     */
    void verfyCode(String mobile,String verifyType,String timestamp, RxObserver<UserBean> callback);


    /**
     * 登录
     * @param open_id
     * @param thirdparty_token
     * @param timestamp
     * @param login_type
     * @param headpic
     * @param nickname
     * @param callback
     */
    void logonQQ(String open_id, String thirdparty_token,String timestamp,String login_type,String headpic,String nickname, RxObserver<UserBean> callback);

    void getLoginAndReport(RxObserver<ReportBean> rxObserver);
}
